<style type="text/css">
    @media (max-width: 375px) {
        .edit-form tr td input{width:100%;}
        .edit-form tr th:first-child,.edit-form tr td:first-child{
            width:20%;
        }
        .edit-form tr th:last-child,.edit-form tr td:last-child{
            /*display: none;*/
        }
    }
</style>
<div class="tab-pane" id="email">
    <div class="widget-body no-padding">
        <form id="email-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="/cms.php/general.config/update">
        	<input type="hidden" name="row[configname]" id="configname" value="{$configname}" />
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th width="15%">标题</th>
                        <th width="70%">值</th>
                        <th width="15%">备注</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- <tr>
                        <td>邮件发送方式</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <select name="row[mail_type]" class="form-control selectpicker" data-tip="选择邮件发送方式" >
                                        <option value="0" {if $sitelist.mail_type eq 0}selected="selected"{/if}>Please select</option>
                                        <option value="1" {if $sitelist.mail_type eq 1}selected="selected"{/if}>SMTP</option>
                                        <option value="2" {if $sitelist.mail_type eq 2}selected="selected"{/if}>Mail</option>
                                    </select>
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr> -->
                    <tr>
                        <td>SMTP服务器</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <input type="text" name="row[mail_smtp_host]" value="{$sitelist.mail_smtp_host}" class="form-control" data-rule="" data-tip="错误的配置发送邮件会导致服务器超时"  />
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>SMTP端口</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <input type="text" name="row[mail_smtp_port]" value="{$sitelist.mail_smtp_port}" class="form-control" data-rule="" data-tip="(不加密默认25,SSL默认465,TLS默认587)"  />
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>SMTP用户名</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <input type="text" name="row[mail_smtp_user]" value="{$sitelist.mail_smtp_user}" class="form-control" data-rule="" data-tip="（填写完整用户名）"  />
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>SMTP密码</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <input type="text" name="row[mail_smtp_pass]" value="{$sitelist.mail_smtp_pass}" class="form-control" data-rule="" data-tip="（填写您的密码）"  />
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>SMTP验证方式</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <select name="row[mail_verify_type]" class="form-control selectpicker" data-tip="（SMTP验证方式[推荐SSL]）" >
                                            <option value="0" {if $sitelist.mail_verify_type eq 0}selected="selected"{/if}>None</option>
                                            <option value="1" {if $sitelist.mail_verify_type eq 1}selected="selected"{/if}>TLS</option>
                                            <option value="2" {if $sitelist.mail_verify_type eq 2}selected="selected"{/if}>SSL</option>
                                        </select>
                                </div>
                                <div class="col-sm-4"></div>
                            </div>

                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>发件人邮箱</td>
                        <td>
                            <div class="row">
                                <div class="col-sm-8 col-xs-12">
                                    <input type="text" name="row[mail_from]" value="{$sitelist.mail_from}" class="form-control" data-rule="" data-tip=""  />
                                </div>
                                <div class="col-sm-4"></div>
                            </div>
                        </td>
                        <td></td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td></td>
                        <td>
                            <button type="submit" class="btn btn-success btn-embossed">确定</button>
                            <button type="reset" class="btn btn-default btn-embossed">重置</button>
                        </td>
                        <td></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
